import request from "@/utils/request";
export const getListAPi = (params?: any) => {
  return request({
    url: "/examine/list",
    method: "get",
    params,
  });
};

export const getInfoApi = (id: number) => {
  return request({
    url: "/examine/" + id,
    method: "get",
  });
};

export const addApi = (data: any) => {
  return request({
    url: "/examine/add",
    method: "post",
    data,
  });
};
export const editApi = (data: any) => {
  return request({
    url: "/examine/edit/",
    method: "put",
    data,
  });
};
export const delApi = (id: number) => {
  return request({
    url: "/examine/delete/" + id,
    method: "delete",
  });
};

export const getReportAPi = (params?: any) => {
  return request({
    url: "/examine/reports",
    method: "get",
    params,
  });
};

export const getReportInfoApi = (id: number) => {
  return request({
    url: "/examine/report/" + id,
    method: "get",
  });
};

export const addExamineApi = (data: any) => {
  return request({
    url: "/examine/staff/add",
    method: "post",
    data,
  });
};

export const editExamineApi = (data: any) => {
  return request({
    url: "/examine/staff/edit/",
    method: "put",
    data,
  });
};

export const delExamineApi = (id: number) => {
  return request({
    url: "/examine/staff/delete/" + id,
    method: "delete",
  });
};

export const getExamineListAPi = (params?: any) => {
  return request({
    url: "/examine/staff/list",
    method: "get",
    params,
  });
};

export const getExamineInfoApi = (id: number) => {
  return request({
    url: "/examine/staff/" + id,
    method: "get",
  });
};

export const getExamineLogApi = (params: any) => {
  return request({
    url: "/examine/staff/logs",
    method: "get",
    params,
  });
};

